package cn.wolfcode.p2p.controller;

import cn.wolfcode.p2p.base.service.ILoginInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 注销登录
 */
@Controller
public class LogoutController {
    @Autowired
    private ILoginInfoService loginInfoService;

    @RequestMapping("logout")
    public String logout(){
        loginInfoService.logout();
        return "redirect:/login.html";
    }
}
